package com.pro.course.util.fina;

import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;

import org.apache.commons.lang.RandomStringUtils;
/**
 * 测试
 * @author Administrator
 *
 */
public class Test {
	public void sss(){
		System.out.println("wwwww");
		 String[] arr = new String[] { "url=dawfefefeaef", "timesqamp=aaaaaa&", "noncestr=111111111&" ,"jsapi_ticket=22222222&"};  
		for (int i = 0; i < arr.length; i++) {
			System.out.println(arr[i]+"");
		}
	}
	public static void main(String[] args) {
		 /*String[] arr = new String[] { "url=dawfefefeaef", "timesqamp=aaaaaa&", "noncestr=111111111&" ,"jsapi_ticket=22222222&"};  
	        // 将参数进行字典序排序  
	        Arrays.sort(arr);  
	        Test test = new Test();
	        		test.sss();
	        		System.out.println(Arrays.toString(arr));
	        for (int i = 0; i < arr.length; i++) {
				System.out.println(arr[i]+"");
			}*/
		String noncestr=RandomStringUtils.randomAlphanumeric(16);
		System.out.println(noncestr);
		Date now = new Date();
		SimpleDateFormat sdf = new SimpleDateFormat("s");
	
		long timestamp=System.currentTimeMillis()/1000;
		System.out.println(timestamp);
	}
}
